package com.heartskyhigh.order.pojo;

import lombok.Data;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.Entity;
import javax.persistence.Id;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @author Luo Zhen
 * @create 2019-11-19 9:09
 */
@Entity
@Data
@DynamicUpdate
@DynamicInsert
public class OrderMaster implements Serializable {

    private static final long serialVersionUID = 8835314467279273249L;
    @Id
    private String orderId;

    private String buyerName;

    private String buyerPhone;

    private String buyerAddress;

    private String buyerOpenid;

    private BigDecimal orderAmount;

    private Integer orderStatus;

    private Integer payStatus;

    private Date createTime;

    private Date updateTime;
}
